package teacher;

import basic.ClientConsole;
import java.sql.SQLException;
import com.sun.rowset.CachedRowSetImpl;
import guiCode.*;
import flexibility.userData;

public class addass {
	public CachedRowSetImpl addassignment(ClientConsole teacherConnection,
			CachedRowSetImpl rs, userData T_Data,Integer myID,String CID,String fileId,int currentSem) {
		T_Data.deleteAll();
		T_Data.addData(31);
		T_Data.addData(0);
		T_Data.addData(CID);//courseID
		T_Data.addData(myID);//she able to add only ass that she upload
		//T_Data.addData(todate);//todate
		T_Data.addData(currentSem);//curr sem
		T_Data.addData(fileId);//assfileID
		teacherConnection.acceptMsg(T_Data);
        rs = teacherConnection.getResults();
		return rs;
		
	}

}
